<?php 
$page = "$_REQUEST[page]";
if($page == null){
$page = homepage;
}
include "includes/header.php"; 
include "includes/nav.php";

$page_name = "content/$page.html";
?>

		
		<div id="content_holder">

		<?php 
		if(!file_exists($page_name)){
		include "content/404.html"; 
		} else {
		include "content/$page.html"; 
		}
		?>
		
		</div><!-- end content holder -->
		
<?php
if($page ==  'updates'){
echo"<!-- no second level nav on this page -->";
}else if($page ==  'thanks'){
echo"<!-- no second level nav on this page -->";
}else if($page ==  'register'){
echo"<!-- no second level nav on this page -->";
}else if($page ==  'submit'){
echo"<!-- no second level nav on this page -->";
}else if($page ==  'stories'){
echo"<!-- no second level nav on this page -->";
}else{
include "includes/second_level_nav.php";
}

?>
		
<?php include "includes/footer.php"; ?>